package com.zhz.service;

import java.util.List;

import com.zhz.pojo.User;

public interface UserService {
	/**
	 * ??????
	 * @param user
	 * @return
	 */
	public boolean add(User user);
	
	/**
	 * ????
	 * @param userCode
	 * @param userPassword
	 * @return
	 */
	public User login(String userCode, String userPassword);
	
	/**
	 * ??????????
	 * @param queryUserName
	 * @param queryUserRole
	 * @return
	 */
	public List<User> getUserList(String queryUserName, int queryUserRole, int currentPageNo, int pageSize);
	/**
	 * ????????????
	 * @param queryUserName
	 * @param queryUserRole
	 * @return
	 */
	public int getUserCount(String queryUserName, int queryUserRole);
	
	/**
	 * ??userCode???User
	 * @param userCode
	 * @return
	 */
	public User selectUserCodeExist(String userCode);
	
	/**
	 * ??ID??user
	 * @param delId
	 * @return
	 */
	public boolean deleteUserById(Integer delId);
	
	/**
	 * ??ID??user
	 * @param id
	 * @return
	 */
	public User getUserById(String id);
	
	/**
	 * ??????
	 * @param user
	 * @return
	 */
	public boolean modify(User user);
	
	/**
	 * ??userId????
	 * @param id
	 * @param pwd
	 * @return
	 */
	public boolean updatePwd(int id, String pwd);
}
